/* 登录表单样式 */

* {
    margin: 0;
    padding: 0;
}

.login-section, .register-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-image: url("/images/pattern.svg");
    background-repeat: repeat;
    background-size: 300px 300px;
    /*background: url('/images/image.webp') no-repeat;*/
    /*background-position: center;*/
    /*background-size: cover;*/
}

.form-box:hover {
    box-shadow: 0 0 25px 10px rgba(255, 255, 255, 0.5),
    0 0 40px 15px rgba(255, 255, 255, 0.2),
    0 0 60px 20px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    transition-duration: 0.2s;
    z-index: 10;
    filter: brightness(1.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.form-box {
    position: relative;
    width: 400px;
    height: auto;
    min-height: 450px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.form-box h2 {
    font-size: 32px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.form-box p {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.inputBox {
    background-color: transparent;
    position: relative;
    margin: 30px 0;
    width: 310px;
    border-bottom: 2px solid #fff;
}

.inputBox input {
    width: 100%;
    height: 50px;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 35px 0 5px;
    color: #fff;
}

.inputBox label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1em;
    pointer-events: none;
    transition: 0.5s;
}

.inputBox input:focus ~ label,
.inputBox input:valid ~ label,
.inputBox input:not(:placeholder-shown) ~ label {
    top: -5px;
}

input:focus ~ label,
input:valid ~ label {
    top: -5px;
}

.inputBox input {
    width: 100%;
    height: 50px;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 35px 0 5px;
    color: #fff;
}

.inputBox i {
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 18px;
    top: 20px;
}

.forget {
    margin: -15px 0 15px;
    font-size: 14px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    width: 310px;
}

.forget label input {
    margin-right: 3px;
}

.forget a {
    text-decoration: none;
    color: #fff;
}

.forget a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 310px;
    height: 40px;
    border-radius: 40px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 15px 0;
}

.login-btn:hover {
    background: #f0f0f0;
}

.register-link {
    font-size: 14px;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
    width: 310px;
}

.register-link p a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.register-link p a:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 20px;
    width: 310px;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin: 15px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #fff;
}

.separator span {
    padding: 0 10px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-button {
    padding: 8px 15px;
    border: 1px solid #fff;
    border-radius: 20px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .form-box {
        width: 90%;
        min-height: 400px;
    }

    .inputBox, .forget, .login-btn, .register-link, .social-login {
        width: 85%;
    }
}